<#include "../common/head.ftl" />
<!DOCTYPE html>
<html>
<@comme_head />
<head lang="en">
    <meta charset="UTF-8">
    <title>用户添加</title>
    <link rel="stylesheet" href="/css/common-css/pc-common.css"/>
    <link rel="stylesheet" href="/css/style.css"/>
    <link rel="stylesheet" href="/css/table-list.css"/>
    <link rel="stylesheet" href="/css/user-add.css"/>
    <script src="/js/common-js/jquery-1.11.3.min.js"></script>
</head>
<script>
 function checknum(){
   var age = $("#age").val();  
   var reg = new RegExp("^[0-9]*$");
    if(!reg.test(age)){
        alert("请输入数字!");
        $("#age").val(" ");
        return false;
    } 
 }
 function check(){
   var account = $("#account").val();
   var password = $("#password").val();
   var name = $("#name").val();
    if(account==''){
       alert("账号为必填项");
       return false;
    }
    if(password==''){
       alert("密码为必填项");
       return false;
    }
    if(name==''){
       alert(姓名为必填项);
       return false;
    }
 }
</script>
<body>
<@comme_header />
<div class="main clearfix" id="main">
   <@comme_daohang />
    <div class="right-content">
        <div class="content">
            <div id="container">
                <div class="tianjia">
                    添加
                </div>
                <form class="biaodan" action="/manager/manager_save_Tusers" method="post">
                <input type="hidden" id="id" name="id" value="${id!}">
                    账号：<input type="text" class="tiaozheng" placeholder="账号" id="account" name="account" value = "${account!}"/><br/>
                    密码：<input type="password" class="tiaozheng" placeholder="密码" id="password" name="password" value= "${password!}"/><br/>
                    姓名：<input type="text" class="tiaozheng" placeholder="姓名" id="name" name="name" value="${name!}"/><br/>
                    年龄：<input type="text" class="tiaozheng" placeholder="年龄" id="age" name="age" value = "${age!}" onmouseout="checknum()"/><br/>
                    性别：<label for="nan">男</label>:<input class="tiaozheng2" id="nan" type="radio" value="0" name="sex" checked="true"/><label for="nv">女</label>:<input class="tiaozheng2" id="nv" type="radio" value="1" name="sex"/><br/>
                    电话：<input type="tel" class="tiaozheng" id="phone" name="phone" value ="${phone!}"/><br/>
                    邮箱：<input type="email" class="tiaozheng" id="email" name="email" value="${email!}"/>
                    <input type="submit" value="保存" onclick="check()" style="display: block;width:100px;height:30px;margin-left:510px;margin-top:50px;"/>             
                </form>
               
            </div>
        </div>
    </div>
</div>
</body>
</html>